import mongoose from "mongoose";
// import { encrypt } from "../utils/bcryptjs";
const historyRuler = new mongoose.Schema({
  behistoryid: { type: mongoose.Schema.Types.ObjectId, require: true },//查看的新闻id
  userid: { type: mongoose.Schema.Types.ObjectId, require: true },
  createTime: {
    type: Date,
    default: Date.now,
  },
});
const historyModel = mongoose.model("historyInfo", historyRuler);
export { historyModel };
